#ifndef _RELAYMANAGER_H_
#define _RELAYMANAGER_H_

#include "WPILib.h"
#include "Relay.h"

#define MAX_RELAYS 8

class RelayManager {
	int *relayarray;
	static RelayManager *singleton;
	static bool hasSingleton;
public:
	RelayManager();
	RelayManager* Get();
	Relay* GetRelay(int channel);
	void SetRelay(int channel, Relay::Value direction);
	void StopRelay(int channel);
	void StopAllRelays();
	
};

#endif //_RELAYMANAGER_H_
